package com.mall.service.impl;

import com.mall.dao.IItemGoodsDao;
import com.mall.domain.ItemGoods;
import com.mall.domain.ListSeacher;
import com.mall.service.IItemCatService;
import com.mall.service.IItemGoodsService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("itemGoodsService")
public class ItemGoodsServiceImpl implements IItemGoodsService {

    @Autowired
    private IItemGoodsDao itemGoodsDao;

    /*
   查询商品列表信息
   * */
    @Override
    public List<ItemGoods> findListGoods(ListSeacher listSeacher){
        listSeacher.setPagenum((listSeacher.getPagenum()-1)*listSeacher.getPagesize());
        return itemGoodsDao.findListGoods(listSeacher);
    }
}
